package com.ybwh.springboot1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("/")
public class LoginController{
	
	
	@RequestMapping("/doLogin")
	@ResponseBody
	public ModelAndView doLogin() {

		ModelAndView mv = new ModelAndView("index");
		return mv;

	}


	
	@RequestMapping("/logout")
	@ResponseBody
	public ModelAndView logout() {

		ModelAndView mv = new ModelAndView("login");
		return mv;

	}



}
